//
//  LSZHeaderLabelCell.m
//  JKFuYinProject
//
//  Created by 九酷 on 2017/12/22.
//  Copyright © 2017年 LC. All rights reserved.
//

#import "LSZHeaderLabelCell.h"

@implementation LSZHeaderLabelCell
-(id)initWithReuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithReuseIdentifier:reuseIdentifier];
    if (self) {
        self.label = [[UILabel alloc]init];
        self.label.textColor = lightColor;
        self.label.textAlignment = NSTextAlignmentCenter;
        [self addSubview:self.label];
        
        self.viewLow = [[UIView alloc]init];
        self.viewLow.backgroundColor = divider;
        [self addSubview:self.viewLow];
        if (ScreenWidth == 320) {
            //5
            self.label.font = FONT_(14.5);
            self.label.frame = CGRectMake(0,(35-18)/2, ScreenWidth, 18);
            self.viewLow.frame = CGRectMake(20, CGRectGetMaxY(self.label.frame)+(35-18)/2-0.3, ScreenWidth-40, 0.3);
        }else if(ScreenWidth == 375){
            // 6 7
            self.label.font = FONT_(15);
            self.label.frame = CGRectMake(0,(40-20)/2, ScreenWidth, 20);
            self.viewLow.frame = CGRectMake(20, CGRectGetMaxY(self.label.frame)+(40-20)/2-0.3, ScreenWidth-40, 0.3);
        }else {
            //plus
            self.label.font = FONT_(15.5);
            self.label.frame = CGRectMake(0,(45-22)/2, ScreenWidth, 22);
            self.viewLow.frame = CGRectMake(20, CGRectGetMaxY(self.label.frame)+(45-22)/2, ScreenWidth-40, 0.3);
        }
    }
    return self;
}
@end
